<:!:/>

@file c.create.html
@author Alejandro Dario Simi
@date $Date: 2013-06-22 17:58:11 +0000 (Sat, 22 Jun 2013) $

$Id: c.create.html 83 2013-06-22 17:58:11Z daemonraco@gmail.com $
$URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.1/extensions/TagsRelator/templates/c.create.html $

<::/><table class="Information"><tr>
	<td class="Label">Rule:</td>
	<td class="Value"><a href="?action=<:VAR:/>WC_ACTION_RULE_SHOW<::/>&group=<:VAR:/>GROUP-ID<::/>&rule=<:VAR:/>RULE-ID<::/>">
		<:VAR:/>RULE-NAME<::/>
	</a></td>
</tr><tr>
	<td class="Label">Current Actions:</td>
	<td class="Value"><:VAR:/>RULE-COUNT<::/></td>
</tr></table>

<:ISSET:!:var=action-created:/><form class="Formulary" action="<:VAR:/>form-action<::/>" method="post" onsubmit="return TARE_CreateAction(this)">
	<table><tr>
		<td class="Label">Action Name:</td>
		<td class="Value"><input id="ACTION_NAME" name="ACTION_NAME" type="text" class="Full" value=""/></td>
	</tr><tr>
		<td class="Label">Action Type:</td>
		<td class="Value"><select id="ACTION_MODE" name="ACTION_MODE">
			<option value="">Select a TagsRelator mode...</option>
			<option value="ALSO">ALSO: Add tags based on another tag</option>
			<option value="IF"  >IF:   Add a tag when other are present</option>
			<option value="POOL">POOL: Ensure synonyms presence</option>
		</select></td>
	</tr><tr>
		<td colspan="2" class="Buttons">
			<input type="submit" value="Create"/>
		</td>
	</tr></table>
	<script type="text/javascript">
		$("#ACTION_NAME").focus();
	</script>
</form><::/><:ISSET:var=action-created:/><form class="Formulary" action="#" method="get" onsubmit="return false">
	<table><tr>
		<td class="Label">Action Name:</td>
		<td class="Value"><input type="text" value="<:VAR:/>name<::/>" class="Full" disabled="disabled"/></td>
	</tr><tr>
		<td class="Label">Action Type:</td>
		<td class="Value"><select disabled="disabled">
			<option value="">Select a TagsRelator mode...</option>
			<option<:IF:var=mode:value=ALSO:/> selected="selected"<::/>>ALSO: Add tags based on another tag</option>
			<option<:IF:var=mode:value=IF:/> selected="selected"<::/>>IF:   Add a tag when other are present</option>
			<option<:IF:var=mode:value=POOL:/> selected="selected"<::/>>POOL: Ensure synonyms presence</option>
		</select></td>
	</tr><tr>
		<td colspan="2" class="Buttons">
			<input type="button" id="GoToAction" value="Go to action" onclick="document.location.href='<:VAR:/>visit<::/>';return false;"/>
		</td>
	</tr></table>
	<script type="text/javascript">
		$("#GoToAction").focus();
	</script>
</form><::/>